package core.testes;

import junit.framework.Test;
import junit.framework.TestSuite;
import core.testes.codeGeneration.ArithmeticCodeGeneratorTest;
import core.testes.codeGeneration.CodeGenerationTest;
import core.testes.lexical.LexicalAnalyserTest;
import core.testes.lexical.StringNotClosedTest;
import core.testes.semantic.AtributionTest;
import core.testes.semantic.IdentifierTest;
import core.testes.semantic.RelationalExpressionTest;
import core.testes.syntatic.ArithmeticTest;
import core.testes.syntatic.EndOfCommandTest;

/**
 * Unit Tests Suit.
 * @author Diego
 *
 */
public class AllUnitTests {
	public static Test suite() {
		TestSuite suite = new TestSuite("Unit tests");
		//$JUnit-BEGIN$
		
		//Semantic
		suite.addTestSuite(AtributionTest.class);
		suite.addTestSuite(IdentifierTest.class);
		suite.addTestSuite(RelationalExpressionTest.class);
		
		//Syntatic
		suite.addTestSuite(ArithmeticTest.class);
		suite.addTestSuite(EndOfCommandTest.class);
		suite.addTestSuite(StringNotClosedTest.class);
		
		//Lexical
		suite.addTestSuite(LexicalAnalyserTest.class);
		
		//Code Generation
		suite.addTestSuite(CodeGenerationTest.class);
		suite.addTestSuite(ArithmeticCodeGeneratorTest.class);
		
		//$JUnit-END$
		return suite;
	}

}
